package mhl.domain;
/*CREATE TABLE menu(
        MenuId INT PRIMARY KEY AUTO_INCREMENT,#唯一编号
        MenuName VARCHAR(30) NOT NULL DEFAULT 'null',#菜名
        MenuPrice DOUBLE NOT NULL DEFAULT 0,#菜的价格
        MenuType VARCHAR(30) # 菜的类型
        );*/
public class Menu {
    private int MenuId;
    private String MenuName;
    private double MenuPrice;
    public String MenuType;
    public Menu(){}
    public Menu(int menuId, String menuName, double menuPrice, String menuType) {
        MenuId = menuId;
        MenuName = menuName;
        MenuPrice = menuPrice;
        MenuType = menuType;
    }

    public int getMenuId() {
        return MenuId;
    }

    public void setMenuId(int menuId) {
        MenuId = menuId;
    }

    public String getMenuName() {
        return MenuName;
    }

    public void setMenuName(String menuName) {
        MenuName = menuName;
    }

    public double getMenuPrice() {
        return MenuPrice;
    }

    public void setMenuPrice(double menuPrice) {
        MenuPrice = menuPrice;
    }

    public String getMenuType() {
        return MenuType;
    }

    public void setMenuType(String menuType) {
        MenuType = menuType;
    }

    @Override
    public String toString() {
        return "\n"+MenuId+"\t\t\t"+MenuPrice+"\t\t"+MenuType+"\t\t"+MenuName+"\t\t";
    }
}
